package com.cjl.jvm.gc;

public class Referred {
    private static final int _1MB = 1024 * 1024;

    byte[] allocation1 = null;

    public Referred(int i) {
        allocation1 = new byte[i * _1MB];
    }

    public Referred(){

    }


    @Override
    protected void finalize() throws Throwable {
        super.finalize();
        System.out.println("Referred 被gc");
    }
}

